import request from '@/utils/request'

// 查询签到日志列表
export function listLog(query) {
  return request({
    url: '/system/signlog/list',
    method: 'get',
    params: query
  })
}

// 查询签到日志详细
export function getLog(signId) {
  return request({
    url: '/system/signlog/' + signId,
    method: 'get'
  })
}

// 新增签到日志
export function addLog(data) {
  return request({
    url: '/system/signlog',
    method: 'post',
    data: data
  })
}

// 修改签到日志
export function updateLog(data) {
  return request({
    url: '/system/signlog',
    method: 'put',
    data: data
  })
}

// 删除签到日志
export function delLog(signId) {
  return request({
    url: '/system/signlog/' + signId,
    method: 'delete'
  })
}

// 导出签到日志
export function exportLog(query) {
  return request({
    url: '/system/signlog/export',
    method: 'get',
    params: query
  })
}
